package com.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * (Prescription)实体类
 *
 * @author makejava
 * @version 1.0
 * @since 2022-04-08 12:02:19
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Prescription {//处方

    private Integer no;//编号
    private String name;//病人姓名
    private String sex;//病人性别
    private String patient;//病人身份证号码
    private String phone;//病人电话号码
    private String doctorNo;//开出医生编号

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date time;//开出时间
}